//
//  SHAnchorPlayView.h
//  Netease
//
//  Created by 王方伟 on 2017/8/22.
//  Copyright © 2017年 wfw. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, DragDirection) {
    DragDirectionAny,          /**< 任意方向 */
    DragDirectionHorizontal,   /**< 水平方向 */
    DragDirectionVertical,     /**< 垂直方向 */
};

@interface SHDragView : UIView
/** 是不是能拖曳，默认为YES */
@property (assign, nonatomic) BOOL dragEnable;
/** 开始拖动的回调 */
@property (nonatomic,copy) void(^beginDragBlock)(SHDragView *dragView);
/** 拖动中的回调 */
@property (nonatomic,copy) void(^duringDragBlock)(SHDragView *dragView);
/** 结束拖动的回调 */
@property (nonatomic,copy) void(^endDragBlock)(SHDragView *dragView);
@property (nonatomic,assign) BOOL isKeepBounds;
/** 活动范围，默认为父视图的frame范围内 */
@property (nonatomic,assign) CGRect freeRect;
/** 拖曳的方向，默认为any，任意方向 */
@property (nonatomic,assign) DragDirection dragDirection;
/** 点击回调 */
@property (nonatomic,copy) void(^clickDragViewBlock)(SHDragView *dragView);
/** 点击关闭回调 */
@property (nonatomic,copy) void(^clickCloseDragViewBlock)(SHDragView *dragView);
@property (assign, nonatomic) BOOL isBig;
@end
